package com.wlyuan.open.domain.api.assembler;

import com.wlyuan.open.domain.api.OpenApiLog;
import com.wlyuan.open.dto.api.OpenApiLogCreationDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author yuanzheng
 */
public class OpenApiLogAssembler {

    @Mapper
    public interface Assembler {

        OpenApiLog assemble(OpenApiLogCreationDTO source);

    }

    private static final Assembler ASSEMBLER = Mappers.getMapper(Assembler.class);

    public static OpenApiLog assemble(OpenApiLogCreationDTO source) {
        return ASSEMBLER.assemble(source);
    }


}
